﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Universe.WCF.Behaviors.Test
{
    internal class SampleTraffic
    {
        private void Do()
        {
            TrafficStatistic before = TrafficDefaultInfo.ServerStatistic.Clone();

            Exec_Some_Work();

            TrafficStatistic workTraffic = TrafficStatistic.Substract(
                TrafficDefaultInfo.ServerStatistic.Clone(),
                before);

            Debug.WriteLine(
                "Some Work Traffic:"
                + Environment.NewLine
                + workTraffic.ToPlainReport());

        }

        private void Exec_Some_Work()
        {
            throw new NotImplementedException();
        }
    }
}
